import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Demo12 {
    public static void main(String[] args) {
        try(OutputStream os = new FileOutputStream("./output.txt")){
            byte[] buf = new byte[]{(byte) 'h',(byte) 'e',(byte) 'l',(byte) 'l',(byte) 'o'};
            os.write(buf);
            os.flush();
        }catch(IOException e){
            e.printStackTrace();
        }

    }
}
